/*
 * @Author: weikang
 * @Description:
 * @Date: 2024-02-08 21:25:07
 * @LastEditTime: 2024-02-24 12:12:29
 * @FilePath: \env-manager-pc\src\api\modules\assets.ts
 */

import api from '../index'

export default {
  // 获取设备事件订阅
  GetDeviceSubscription: () => api<any>({
    url: `/Env/Enterprise/GetDeviceSubscription`,
    method: 'post',
  }),
  // 设置设备事件订阅
  SetDeviceSubscription: (data: any) => api<any>({
    url: `/Env/Enterprise/SetDeviceSubscription`,
    method: 'post',
    data,
  }),
  // 获取异常事件订阅
  GetUnitSubscription: () => api<any>({
    url: `/Env/Enterprise/GetUnitSubscription`,
    method: 'post',
  }),
  // 设置异常事件订阅
  SetUnitSubscription: (data: any) => api<any>({
    url: `/Env/Enterprise/SetUnitSubscription`,
    method: 'post',
    data,
  }),
}
